package newcoder.lx_字符串反转;

import java.util.Scanner;

/**
 * @Author Mr.wang
 * @Description 写出一个程序，接受一个字符串，然后输出该字符串反转后的字符串。（字符串长度不超过1000）
 * @Date 2020-04-11
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String line = scanner.nextLine();
            StringBuilder builder = new StringBuilder(line);
            System.out.println(builder.reverse().toString());
        }
    }
}
